package com.future.service.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.future.dao.MenuMapper;
import com.future.model.Menu;
import com.future.service.IMenuService;

@Service
public class MenuServiceImpl implements IMenuService{

	@Autowired
	private MenuMapper menuMapper;
	@Override
	public List<Menu> getMenuByRid(Integer roleId) throws SQLException, Exception {
		List<Menu> menuList = menuMapper.getMenuByRid(roleId);
		if(menuList!=null && menuList.size()>0)
			return menuList;
		else
			return null;
	}

	@Override
	public List<Menu> find(Menu m) {
		return null;
	}

}
